<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:constants="http://www.tuanzi.com/constants/tags">
    <div class="ui-g">
        <div class="ui-g-12">
            <h3>
                <b>营销基础信息</b>
            </h3>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="modelId" value="活动模板"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="modelId" value="#{firstPartyTagInfoBean.$.modelId}" filter="true"
                             filterMatchMode="contains" disabled="#{firstPartyTagInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{firstPartyTagInfoBean.contentActivities}" var="contentActivity"
                               itemLabel="#{contentActivity.name}" itemValue="#{contentActivity.id}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="url" value="跳转链接"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="url" value="#{firstPartyTagInfoBean.$.url}" disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="position" value="排列位置"/>
        </div>
        <div class="ui-g-4">
            <p:spinner id="position" value="#{firstPartyTagInfoBean.$.position}"
                       disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="summary" value="活动描述"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="summary" value="#{firstPartyTagInfoBean.$.summary}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="advantageTag" value="产品优势(多值输入)"/>
        </div>
        <div class="ui-g-4">
            <p:chips id="advantageTag" value="#{firstPartyTagInfoBean.$.advantage}"
                     disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="rate" value="参考利率"/>
        </div>
        <div class="ui-g-4">
            <div class="input-group">
                <p:inputText id="rate" value="#{firstPartyTagInfoBean.$.rate}"
                             disabled="#{firstPartyTagInfoBean.isView()}"/>
                <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
            </div>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="loanLimit" value="预计放款额度"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="loanLimit" value="#{firstPartyTagInfoBean.$.loanLimit}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="initCount" value="初始申请人数"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="initCount" value="#{firstPartyTagInfoBean.$.initCount}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="successCount" value="成功申请人数"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="successCount" value="#{firstPartyTagInfoBean.$.successCount}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="lendDate" value="批款时间"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="lendDate" value="#{firstPartyTagInfoBean.$.lendDate}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="heat" value="贷款热度"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="heat" value="#{firstPartyTagInfoBean.$.heat}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="passRate" value="审批通过率"/>
        </div>
        <div class="ui-g-4">
            <div class="input-group">
                <p:inputText id="passRate" value="#{firstPartyTagInfoBean.$.passRate}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
                <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
            </div>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="lastweekPassRate" value="上周审批通过率"/>
        </div>
        <div class="ui-g-4">
            <div class="input-group">
                <p:inputText id="lastweekPassRate" value="#{firstPartyTagInfoBean.$.lastweekPassRate}"
                             disabled="#{firstPartyTagInfoBean.isView()}">
                    <p:keyFilter regEx="/[\d]/"/>
                </p:inputText>
                <span class="input-group-addon"> <h:outputText value="%"/>
				</span>
            </div>
        </div>
        <div class="ui-g-6"></div>

        <div class="ui-g-2">备注</div>
        <div class="ui-g-10">
            <p:inputTextarea id="remark" value="#{firstPartyTagInfoBean.$.remark}"
                             disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="活动缩略图(1:1)"/>
        </div>
        <div class="ui-g-1">
            <p:graphicImage url="#{firstPartyTagInfoBean.$.logo}" width="80"/>
        </div>
        <div class="ui-g-3">
            <p:fileUpload fileUploadListener="#{firstPartyTagInfoBean.onUploadLogo}" mode="advanced" fileLimit="1"
                          auto="true" fileLimitMessage="只能上传一个文件" invalidFileMessage="不支持上传文件类型"
                          invalidSizeMessage="文件过大" sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}"
                          allowTypes="/(\.|\/)(#{constants:get('UPLOAD_FILE_SUFFIX')})$/" label="上传" update="@form"
                          process="@form" disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel value="营销标签(1:1)"/>
        </div>
        <div class="ui-g-1">
            <p:graphicImage url="#{firstPartyTagInfoBean.$.marketTag}" width="80"/>
        </div>
        <div class="ui-g-3">
            <p:fileUpload fileUploadListener="#{firstPartyTagInfoBean.onUploadMarketTag}" mode="advanced" auto="true"
                          fileLimit="1" fileLimitMessage="只能上传一个文件" invalidFileMessage="不支持上传文件类型"
                          invalidSizeMessage="文件过大" sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}"
                          allowTypes="/(\.|\/)(#{constants:get('UPLOAD_FILE_SUFFIX')})$/" label="上传" update="@form"
                          process="@form" disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="长标签"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="longTagImg1"
                             value="#{firstPartyTagInfoBean.$.longTagImg1}" filter="true"
                             filterMatchMode="contains" disabled="#{firstPartyTagInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.THIRD_PARTY_LONG_TAG]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
        </div>
        <div class="ui-g-4">
            <p:inputText id="longTagDesc1" value="#{firstPartyTagInfoBean.$.longTagDesc1}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value=""/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="longTagImg2"
                             value="#{firstPartyTagInfoBean.$.longTagImg2}" filter="true"
                             filterMatchMode="contains" disabled="#{firstPartyTagInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.THIRD_PARTY_LONG_TAG]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
        </div>
        <div class="ui-g-4">
            <p:inputText id="longTagDesc2" value="#{firstPartyTagInfoBean.$.longTagDesc2}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="platformScore" value="平台综合评分"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="platformScore" value="#{firstPartyTagInfoBean.$.platformScore}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="floatContent" value="提示浮窗内容"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="floatContent" value="#{firstPartyTagInfoBean.$.floatContent}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="rateRemark" value="利率说明"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="rateRemark" value="#{firstPartyTagInfoBean.$.rateRemark}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="repayRemark" value="还款说明"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="repayRemark" value="#{firstPartyTagInfoBean.$.repayRemark}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-12">
            <h3>
                <b>营销登录信息</b>
            </h3>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="api" value="API序号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="api" value="#{firstPartyTagInfoBean.$.api}" disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="apiModelId" value="API模板ID"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="apiModelId" value="#{firstPartyTagInfoBean.$.apiModelId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="unionType" value="联登序号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="unionType" value="#{firstPartyTagInfoBean.$.unionType}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="receiptProductId" value="借条产品ID"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="receiptProductId" value="#{firstPartyTagInfoBean.$.receiptProductId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="receiptModelId" value="借条模板ID"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="receiptModelId" value="#{firstPartyTagInfoBean.$.receiptModelId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel for="collisionApiId" value="撞库API序号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="collisionApiId" value="#{firstPartyTagInfoBean.$.collisionApiId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="newCollisionApiId" value="新撞库序号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="newCollisionApiId" value="#{firstPartyTagInfoBean.$.newCollisionApiId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel for="allId" value="全流程ID"/>
        </div>
        <div class="ui-g-4">
            <p:inputText id="allId" value="#{firstPartyTagInfoBean.$.allId}"
                         disabled="#{firstPartyTagInfoBean.isView()}"/>
        </div>
        <div class="ui-g-2">
            <p:outputLabel value="前筛规则"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu
                    value="#{firstPartyTagInfoBean.$.prefilterId}" filter="true"
                    filterMatchMode="contains" disabled="#{firstPartyTagInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{firstPartyTagInfoBean.loanProductPrefilters}"
                               var="loanProductPrefilter"
                               itemLabel="#{loanProductPrefilter.name}" itemValue="#{loanProductPrefilter.id}"/>
            </p:selectOneMenu>
        </div>

        <div class="ui-g-12">
            <h3>
                <b>客服信息</b>
            </h3>
        </div>
        <div class="ui-g-2">
            <p:outputLabel value="客服类型"/>
        </div>
        <div class="ui-g-4">
            <p:selectOneMenu id="customerServiceType"
                             value="#{firstPartyTagInfoBean.$.customerServiceType}" filter="true"
                             filterMatchMode="contains" disabled="#{firstPartyTagInfoBean.isView()}">
                <f:selectItem itemLabel="- 请选择 -" itemValue="" noSelectionOption="true"/>
                <f:selectItems value="#{firstPartyTagInfoBean.dictionaries[DictionaryCode.CUSTOMER_SERVICE_TYPE]}"
                               var="dic"
                               itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
            </p:selectOneMenu>
        </div>
        <div class="ui-g-2">
        </div>
        <div class="ui-g-4">
            <p:inputText id="customerServiceContent" value="#{firstPartyTagInfoBean.$.customerServiceContent}" disabled="#{firstPartyTagInfoBean.isView()}" placeholder="请输入对应类型的客服内容" />
        </div>
    </div>
</ui:composition>